* {
  padding: 0;
  margin: 0 auto;
  scroll-behavior: smooth;

  a {
    text-decoration: none;
  }
}
body {
  background-color: rgb(238, 239, 239);
  box-sizing: border-box;

  button {
    cursor: pointer;
  }
  //   display: flex;
  //   justify-content: center;
}

input {
  border-style: none;
  outline-style: none;
}
ul {
  list-style: none;
}
// 顶部
.top {
  z-index: 5;
  transition: all 0.3s;
  position: fixed;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

  background-color: rgb(255, 255, 255);
  #top {
    width: 1500px;
    display: flex;
    padding: 5px 20px;
  }
  #logo-search {
    display: flex;
    width: 380px;
    height: 50px;
  }
  span {
    background-color: aliceblue;
  }
  .logo {
    width: 100px;
    height: 50px;
    img {
      height: 100%;
      width: 100%;
    }
  }
  &-search {
    display: flex;
    border-radius: 25px;
    box-sizing: border-box;
    background-color: #edecec;
    width: 240px;
    height: 40px;
    padding: 10px;
    margin-top: 5px;
    .iconfont {
      background-color: #edecec;
      font-size: 22px;
      font-weight: bold;
    }
  }
  #top-input {
    background-color: rgba(0, 0, 0, 0);
  }
}
// 主功能

#fn {
  background-color: rgb(255, 255, 255);
  width: 550px;
  height: 52px;
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
  margin-top: 5px;
  div {
    width: 10%;
    height: 100%;
    background-color: rgb(255, 255, 253);
    text-align: center;
    box-sizing: border-box;
    padding: 5px;
    .icon {
      width: 100%;
      height: 90%;
      .iconfont {
        font-size: 28px;
        font-weight: 600;
      }
      &:hover {
        cursor: pointer;
        color: #ff8200;
        background-color: #fcf7f7;
      }
    }
  }
}
.border {
  color: #ff8200;
  border-bottom: 4px solid #ff8200;
}

.access {
  width: 400px;
  height: 40px;
  display: flex;

  background-color: rgb(255, 255, 255);
  padding: 14px 35px;
  box-sizing: border-box;

  .setting {
    height: min-content;
    width: 80px;
    background-color: white;

    .top-setting-btn,
    .top-pattern-btn {
      background-color: rgb(237, 236, 236);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border-style: none;
      .iconfont {
        font-size: 22px;
      }
      &:hover {
        background-color: #d3d3d5;
      }
    }
    .top-publish-btn {
      color: white;
      background-color: #ff8200;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border-style: none;
      .iconfont {
        font-weight: 600;
        font-size: 22px;
      }
    }

    .setting-list {
      border-radius: 5px;
      box-shadow: 2px 2px 5px #c2c2c5, -1px -1px 5px #c2c2c5;
      width: 100px;
      height: auto;
      background-color: white;
      position: relative;
      top: 10px;
      display: none;
      a {
        cursor: pointer;
        display: block;
        line-height: 40px;
        height: 40px;
        text-align: center;
        color: #505051;
        &:hover {
          background-color: #f8f8fb;
        }
      }
      div {
        cursor: pointer;
        line-height: 40px;
        height: 40px;
        text-align: center;
        color: #505051;
        &:hover {
          background-color: #f8f8fb;
        }
      }
    }
  }
  #login-register-btn {
    color: #ff8200;
    border: 1px solid rgb(252, 144, 12);
    outline-style: none;
    width: 150px;
    height: 35px;
    border-radius: 20px;
    font-size: 15px;
    letter-spacing: 5px;
    background-color: white;
    &:hover {
      background-color: #ff8200;
      color: white;
    }
  }
}

#content {
  display: flex;
  height: 8000px;
  width: 1100px;
  position: relative;
  top: 70px;

  .list {
    border-radius: 5px 5px 0 0;
    position: fixed;
    padding-top: 10px;
    width: 200px;
    height: 100%;
    margin-left: 0px;
    background-color: rgb(255, 255, 255);
    p {
      font-size: 24px;
      padding-left: 10px;
    }
    ul {
      height: auto;
      width: 90%;
      background-color: #ffffff;
      a {
        display: block;
        box-sizing: border-box;
        height: 50px;

        font-size: 18px;
        line-height: 50px;
        span {
          display: inline-block;
          margin: 0 5px;
          i {
            font-size: 18px;
            font-weight: 500;
          }
        }
        &:hover {
          background-color: rgb(237, 236, 234);
        }
      }
    }
  }

  #news {
    overflow: hidden;
    position: relative;
    height: 100000px;
    width: 572px;

    margin: 0 10px;
    left: 18.8%;
    border-radius: 5px 5px 0 0;
    .sign {
      border-radius: 5px 5px 5px 5px;
      margin-bottom: 10px;
      width: 100%;
      height: 50px;
      background-color: #ffffff;
    }
    .news {
      padding: 15px 5px;
      border-radius: 5px;
      width: 100%;
      box-sizing: border-box;
      background-color: #ffffff;
      margin-bottom: 10px;
      .news-top {
        display: flex;
        padding: 10px 5px;
      }
      .head-link {
        display: inline-block;
        width: 60px;
        height: 60px;
        padding: 5px;

        .head {
          width: 60px;
          height: 60px;
        }
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 50%;
        }
      }

      .top-details {
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        width: 90%;
        padding: 10px 5px;
        .name {
          color: black;
          font-weight: 500;
          text-decoration: none;
          font-size: 20px;
          width: 100%;
          display: inline-block;
        }
        .time {
          font-size: 13px;
          width: 100%;
        }
      }
      .top-attention {
        width: 15%;
        button {
          width: 80px;
          height: 35px;
          color: #ff8200;
          font-size: 17px;
          border: 1px solid #ff8200;

          border-radius: 15px;
          background-color: white;
          &:hover {
            background-color: antiquewhite;
          }
        }
      }
    }
  }

  .news-container {
    box-sizing: border-box;
    width: 83%;
    background-color: rgb(255, 255, 255);
    height: 400px;
    margin-left: 80px;
    p {
      width: 100%;
      font-size: 15px;
      word-wrap: break-word;
    }
  }
  .foot {
    display: flex;
    width: 100%;
    height: 25px;
    margin-top: 5px;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    div {
      width: 33%;
      i {
        font-size: 15px;
      }
      span {
        font-size: 12px;
      }

      background-color: #ffffff;
      text-align: center;
      line-height: 25px;
      &:hover {
        cursor: pointer;
        color: #ff8200;
      }
    }
  }
  .spread {
    display: none;
    width: 100%;
    position: relative;
    padding: 5px 20px;
    box-sizing: border-box;
    input {
      padding-left: 10px;
      border-radius: 5px;
      width: 100%;
      height: 35px;
      border: 1px solid #ff8200;
      font-weight: 500;
      letter-spacing: 2px;
    }
  }
  #right-bar {
    position: relative;
    width: 280px;
    height: 100%;
    margin-right: 20px;
    #hot {
      overflow: hidden;
      position: fixed;
      width: 280px;
      height: 500px;
      background-color: white;
      border-radius: 5px;
      .refresh {
        font-size: 14px;
        color: #c2c2c5;
      }
    }
  }
}

.return-top {
  opacity: 0;
  text-align: center;
  line-height: 40px;
  font-size: 25px;
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: fixed;
  margin-left: 300px;
  bottom: 10%;
}

.hot-top {
  align-items: center;
  .hot-top-content {
    width: 182px;
    font-size: 20px;
  }

  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background-color: white;
  padding: 5px 5px;
  box-sizing: border-box;
  .refresh {
    display: inline-block;
  }
}
.comment-btn {
  margin-left: 85%;
  margin-top: 5px;
  border-style: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: 540;
  background-color: #ff8200;
  width: 70px;
  height: 30px;
}
.disable {
  background-color: #ffc17f;
  cursor: not-allowed;
}
#comment {
  margin-top: 50px;
  .comment-list {
    display: flex;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    a {
      display: inline-block;
      margin: 0 0;
      width: 40px;
    }
    .comment-head {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .comment-details {
      i {
        cursor: pointer;
        &:hover {
          color: #ffc17f;
        }
      }
      padding: 5px 5px;
      .comment-name {
        text-decoration: none;
        font-size: 15px;
        color: rgb(236, 193, 138);
      }
      width: 89%;
      height: 25px;
    }
    .c-content {
      font-size: 14px;
    }
    .comment-bottom {
      display: flex;
      justify-content: space-around;
      .c-time {
        width: 340px;
        font-size: 15px;
        color: darkgray;
      }
      .comment-fn {
        width: 130px;
        display: flex;
        justify-content: space-between;
      }
    }
  }
}

.color {
  color: #ff8200;
}
